\usepackage[no-math]{fontspec}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{Sanskrit 2003:script=deva}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{fullpage}
\usepackage{multicol}
\usepackage{fancyhdr}
\pagestyle{fancyplain}

\renewcommand\contentsname{अनुक्रमणिका}
\makeatletter
\renewcommand\section{\newpage\resetShloka\@startsection {section}{1}{\z@}%
																	%{2.3ex \@plus.2ex}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\Large\bfseries}}
\makeatother

\setcounter{secnumdepth}{-1}
%for weird reasons this does not bookmark the section start, but the start of text in the section!!!
%\renewcommand\thesection{}
\renewcommand{\sectionmark}[1]{%
\markboth{#1}{}}
\renewcommand{\subsectionmark}[1]{%
\markboth{#1}{}}

\newcommand{\calibri}{\font\x="Calibri Bold" at 9pt \x}

\addtolength{\headheight}{15pt}
\rhead[\fancyplain{}{\calibri}]
   {\fancyplain{}{\small \leftmark}}
\lhead[\fancyplain{}{\small \leftmark}]
   {\fancyplain{}{\calibri}}
\cfoot{\framebox{\framebox{\calibri \quad\thepage\quad}}}

\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
  %\clearpage
  {\pagestyle{empty}\origdoublepage}%
}

\newcommand{\dnsub}[1]{
\medskip
\centerline{\Large \bfseries ॥#1॥ }
\smallskip
}

\addtolength{\fboxrule}{1pt}
\addtolength{\parskip}{4pt}
\addtolength{\headsep}{10pt}
\addtolength{\textheight}{-10pt}
\setlength{\columnseprule}{1pt}
\setlength{\columnsep}{30pt}
\usepackage[a5paper,bookmarks=true,bookmarksopen=true,xetex,colorlinks=true,
linkcolor=blue,					% colour of internal links
citecolor=cyan,					% colour of links to bibliography
filecolor=magenta,			% colour of file links
urlcolor=black					% colour of external links
]{hyperref}

\usepackage{shloka}
\hbadness=10000
\vbadness=10000